<?php
declare (strict_types = 1);

namespace app\facade;

use think\Facade;
use app\tools\StringTool;

/**
 * Class StringFacade
 *
 *  @method static explodeImplode($string, $delimiter = ',')
 *  @method static getDiffByTimestamp($start, $end)
 *  @method static YuanToWan($price, $decimal = 2)
 *  @method static WanToYuan($price, $decimal = 0)
 *  @method static discount($price, $original)
 *  @method static getOffsetByDistance($distance)
 *  @method static getClientIp()
 *  @method static getDiffSecondsByTimestamp($start, $end)
 *  @method static getSecondConvert($second, $convert = 'm')
 *  @method static getOneYearMonth($month = 6)
 *  @method static percentage($number1, $number2)
 *  @method static getYearMonthBySubMonths($month = 6)
 *  @method static getYearMonthByCreatetime($createtime)
 *  @method static replaceDomainShowUrl($value)
 *  @method static splicingDomainShowUrl($value)
 *  @method static interceptMonthByYearMonth($months)
 *  @method static convertUrlQuery($query)
 *  @method static getDiffPeriodByNowTimestamp($timestamp)
 *  @method static getCreatetimeByDayArray($days)
 *  @method static replaceLogicMark($value)
 *  @method static richToText($string, $start, $end)
 *  @method static createStringById($id, $key = 'OD', $length = 32)
 *  @method static replaceKjlDomainShowUrl($value)
 *  @method static splicingKjlDomainShowUrl($value)
 *  @method static enBase64Mix($str, $key)
 *  @method static deBase64Mix($str, $key)
 *  @method static generateRandomNumber($length)
 *  @method static generateRandomString($length)
 *  @method static getDiffMonths($timestamp)
 *  @method static getDiffDays($timestamp)
 *  @method static buildHousingLastMonths($timestamp)
 *  @method static getMonthByCreatetime($createtime)
 *  @method static orderPayment($amount, $coin)
 *  @method static coinToAmount($coin)
 *  @method static amountToCoin($amount)
 *
 * @package \app\tools\facade
 */
final class StringFacade extends Facade
{
    protected static function getFacadeClass()
    {
        return StringTool::class;
    }
}
